package com.example.controller;

import com.example.common.result.Result;
import com.example.entity.yifei.Cmsno;
import com.example.service.CmsnoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/api/Cmsno")
@Api(tags = "项目编号控制器")
@Slf4j
public class CmsnoController {

    @Resource
    private CmsnoService cmsnoService;

    @ApiOperation("项目编号查询")
    @GetMapping("/queryIPage/{current}/{size}")
    public Result<Map<String, Cmsno>> queryIPage(@PathVariable Integer current, @PathVariable Integer size){
        return this.cmsnoService.queryList(current,size);
    }
}
